var obj = {
  get: function() {
    console.log('从服务器获取数据')
  },
  post: function() {
    console.log('提交数据')
  }
}

// exports.xxx = obj  // { xxx: { get: [Function: get], post: [Function: post] } }
// module.exports = obj // { get: [Function: get], post: [Function: post] }

exports.get = function() { // { get: [Function (anonymous)] }
  console.log('从服务器获取数据')
}

exports.post = function() { // { post: [Function (anonymous)] }
  console.log('提交数据')
}
